<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>String Padding</title>
</head>

<body>
    <div>
        String Padding
    </div>


    <script>
        /**********************String Padding**********************/
        // console.log('0.0'.padStart(2,'10')) //10.0
        // console.log('0.0'.padStart(20,'0'))//      
        // console.log('sisis'.padStart(33,'00')) 
        // console.log('xiaohui'.padEnd(13,'.Zhang'))


        /************************** Reflect  ***************************/
        var obj = {
            age: 18,
            name:"huihui"
        }
// 判断某一属性是否存在于 对象中
        console.log('name' in obj)
        // 
        console.log(Reflect.has(obj,'name'))

    </script>

</body>

</html>